package com.gitee.feizns.explore.data_structure.union_find;

/**
 * @author feizns
 * @since 2020/3/11
 */
public interface UnionFind {

    int size();

    boolean isConnected(int p, int q);

    void union(int p, int q);

}

